package com.scy.hospitalmanager.service.impl;

import com.scy.hospitalmanager.dao.administratordao.NurseMsgDao;
import com.scy.hospitalmanager.dao.nursedao.NurseTimeTableDao;
import com.scy.hospitalmanager.pojo.Nurse;
import com.scy.hospitalmanager.pojo.NurseTimeTable;
import com.scy.hospitalmanager.service.NurseTimeTableService;
import com.scy.hospitalmanager.until.NurseNameUtil;
import com.scy.hospitalmanager.until.SplitString;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @ClassName: NurseTimeTableServiceImpl
 * @Author: KuonnjiArisu
 * @Date: 2021/8/16 9:35
 * @Version: 1.0
 */
@Service
public class NurseTimeTableServiceImpl implements NurseTimeTableService {
    @Autowired
    NurseTimeTableDao nurseTimeTableDao;
    @Autowired
    NurseMsgDao nurseMsgDao;

    @Override
    public List<NurseTimeTable> getAllNurseTimeTable() {
       return NurseNameUtil.getNurNameList(nurseTimeTableDao.getAllNurseTimeTable(),nurseMsgDao);
    }

}


